<?php
namespace app\index\validate;

use think\facade\Request;
use think\Validate;

class BaseValidate extends Validate
{
    public function goCheck(){
        // 获取所有请求参数
      $params = Request::param();
        // 检查参数
        $result   = $this->check($params);
      if (!$result) {
         $msg = $this->getError();
          return $msg;
        }
        return true;
   }

}